package cn.itcast.yimiaoyuyue.Adapter;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import cn.itcast.yimiaoyuyue.Adapter.R;

public class PersonalActivity extends AppCompatActivity {
    ImageView imBack;
    EditText et_id;
    EditText et_name;
    EditText et_sex;
    EditText et_birthday;
    EditText et_telephone;
    Button btBc;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_personal);

        initView();
        initData();
        initEvent();
    }

    private void initEvent() {

        btBc.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                getData();
            }


        });
        imBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PersonalActivity.this,MyActivity.class);
                startActivity(intent);
            }
        });

    }
    private void getData() {

    }




    private void initData() {

    }

    private void initView() {
        imBack = findViewById(R.id.im_back);
        et_id = findViewById(R.id.et_id);
        et_name = findViewById(R.id.et_name);
        et_sex = findViewById(R.id.et_sex);
        et_birthday = findViewById(R.id.et_birthday);
        et_telephone = findViewById(R.id.et_telephone);
        btBc = findViewById(R.id.bt_bc);
    }
}